package com.dgy.eval.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dgy.eval.mapper.TeachEvalItemMapper;
import com.dgy.eval.domain.TeachEvalItem;
import com.dgy.eval.service.ITeachEvalItemService;

/**
 * 问题答案Service业务层处理
 *
 * @author ccc
 * @date 2025-02-15
 */
@Service
public class TeachEvalItemServiceImpl implements ITeachEvalItemService
{
    @Autowired
    private TeachEvalItemMapper teachEvalItemMapper;

    /**
     * 查询问题答案列表
     *
     * @param teachEvalItem 问题答案
     * @return 问题答案
     */
    @Override
    public List<TeachEvalItem> selectTeachEvalItemList(TeachEvalItem teachEvalItem)
    {
        return teachEvalItemMapper.selectTeachEvalItemList(teachEvalItem);
    }

    /**
     * 新增问题答案
     *
     * @param teachEvalItemList 问题答案
     * @return 结果
     */
    @Override
    public int insertTeachEvalItemBatch(List<TeachEvalItem> teachEvalItemList)
    {
        return teachEvalItemMapper.insertTeachEvalItemBatch(teachEvalItemList);
    }

    /**
     * 批量删除问题答案
     *
     * @param recordIds
     * @return 结果
     */
    @Override
    public int deleteTeachEvalItemByRecordIds(Long[] recordIds)
    {
        return teachEvalItemMapper.deleteTeachEvalItemByRecordIds(recordIds);
    }

    /**
     * 删除问题答案信息
     *
     * @param id 问题答案主键
     * @return 结果
     */
    @Override
    public int deleteTeachEvalItemById(Long id)
    {
        return teachEvalItemMapper.deleteTeachEvalItemById(id);
    }
}
